package lq;

import java.util.Scanner;

public class lq2008 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int zs,fs,zero;
        while (in.hasNext()){
            zs=0;
            fs=0;
            zero=0;
            int n = in.nextInt();
            if (n<100){
            if (n==0){
               continue;
            }
            else {
                for (int i = 0; i < n; i++) {
                    double m = in.nextDouble();
                    if(m==0){
                        zero++;
                    }
                    if(m>0){
                        zs++;
                    }
                    if(m<0){
                        fs++;
                    }

                }
            }
            }
            System.out.println(fs+" "+zero+" "+zs);
        }
    }
}
